package com.wrench.elevator.redis_test;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class TestJedis {  
    
    public static void main(String[] args) {  
        JedisPool pool = new JedisPool(new JedisPoolConfig(),"localhost",6379,10000,"!WQ19-p0");  
  
        Jedis jedis = pool.getResource();  
        jedis.set("notify", "新浪微博：小叶子一点也不逗");  
        jedis.expire("notify", 10); 
        jedis.set("notify_BACK", "新浪微博：小叶子一点也不逗");  
        jedis.expire("notify_BACK", 12); 
  
    }  
}  